package ss9999999999;
import java.util.Timer;
import java.util.TimerTask;
public class Time {
    public static void main(String[] args) {
        Timer timer=new Timer();
        int a =5000;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("5秒");
            }
        }, a, a);
    }
}
